<?php 
	
namespace app\admin\validate;
//导入Validate类
use think\Validate;

class Position extends Validate{
	protected $rule=[
		'name'=>'require|unique:position'
	];

	protected $message=[
		'name.require'=>'职务不能为空',
		'name.unique'=>'职务重复'
	];
} 

